package com.one.group.admin.mapper;

import com.mybatisflex.core.BaseMapper;
import com.one.group.model.dto.SpBuildingAddDto;
import com.one.group.model.entity.SpBuilding;

import java.util.List;

public interface SpBuildingMapper extends BaseMapper<SpBuilding> {

    /**
     * 查询小区下的楼栋列表
     * @param cellId
     * @return
     */
    List<SpBuilding> searchBuildingList(Long cellId);

    Long createBuilding(SpBuildingAddDto spBuildingAddDto);
}
